/**
 * description: 通过`transformItems`转换返回结果，控制台请求`${api}?searchKey=${value}`
 */

import React from 'react';
import { SearchInput } from '@ecoding/components.antd';

const C = () => {
    return (
        <SearchInput 
            action="https://f2e-api.sciecomm.cn/f2e/mock/list" 
            transformItems={(res) => res.map((n) => ({
                key: n.id,
                label: n.name
            }))} 
        />
    );
}

export default C;